package c.d.a.a.i;

import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.util.DisplayMetrics;
import c.d.a.a.a.a;
import c.d.a.a.j.g;
import c.d.a.a.j.h;

/* compiled from: LineRadarRenderer */
public abstract class f extends g {
    public f(a aVar, h hVar) {
        super(aVar, hVar);
    }

    public void k(Canvas canvas, Path path, int i, int i2) {
        i = (i & 16777215) | (i2 << 24);
        DisplayMetrics displayMetrics = g.a;
        i2 = canvas.save();
        canvas.clipPath(path);
        canvas.drawColor(i);
        canvas.restoreToCount(i2);
    }

    public void l(Canvas canvas, Path path, Drawable drawable) {
        DisplayMetrics displayMetrics = g.a;
        int save = canvas.save();
        canvas.clipPath(path);
        RectF rectF = this.a.b;
        drawable.setBounds((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom);
        drawable.draw(canvas);
        canvas.restoreToCount(save);
    }
}
